﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class GioHangDTO
    {
        #region ThuocTinh
        private int m_IDNguoiDung;
        private List<HangDTO> m_lstHang;
        private long m_ThanhTien;
        private DateTime m_Ngay;
        private String m_HoTen;
        private String m_DiaChi;
        private String m_DienThoai;
        private String m_Email;
        private List<int> m_gianhangvaomua;
        private List<long> m_ThanhTienTenSanPham;

        #endregion ThuocTinh

        #region PhuongThuc
        /// <summary>
        /// Lấy/Gán ID người dùng
        /// </summary>
        public int IDNguoiDung
        {
            get { return this.m_IDNguoiDung; }
            set { this.m_IDNguoiDung = value; }
        }

        /// <summary>
        /// Lấy/Gán hàng trong giỏ
        /// </summary>
        public List<HangDTO> lstHang
        {
            get { return this.m_lstHang; }
            set { this.m_lstHang = value; }
        }

        /// <summary>
        /// Lấy/Gán Ngày
        /// </summary>
        public DateTime Ngay
        {
            get { return this.m_Ngay; }
            set { this.m_Ngay = value; }
        }

        /// <summary>
        /// Lấy/Gán thành tiền
        /// </summary>
        public long ThanhTien
        {
            get { return this.m_ThanhTien; }
            set { this.m_ThanhTien = value; }
        }

       

        public String HoTen
        {
            get { return this.m_HoTen; }
            set { this.m_HoTen = value; }
        }

        public String DiaChi
        {
            get { return this.m_DiaChi; }
            set { this.m_DiaChi = value; }
        }

        public String DienThoai
        {
            get { return this.m_DienThoai; }
            set { this.m_DienThoai = value; }
        }

        public String Email
        {
            get { return this.m_Email; }
            set { this.m_Email = value; }
        }

        public List<int> Gianhangvaomua
        {
            get { return m_gianhangvaomua; }
            set { m_gianhangvaomua = value; }
        }

        public List<long> ThanhTienTenSanPham
        {
            get { return m_ThanhTienTenSanPham; }
            set { m_ThanhTienTenSanPham = value; }
        }
        //</NEW CODE>

        public GioHangDTO()
        {
            m_IDNguoiDung = -1;
            m_Ngay = DateTime.Now;
            m_lstHang = new List<HangDTO>();
            HoTen = "";
            DiaChi = "";
            DienThoai = "";
            Email = "";
            Gianhangvaomua = new List<int>();
            ThanhTienTenSanPham = new List<long>();
        }
        #endregion PhuongThuc
    }
}
